import React, { Component } from 'react'
// import qs from "querystring"


export default class Detailed extends Component {
    render() {
        console.log(this.props);
        // 接受params参数
        // const { id, title, content } = this.props.match.params

        // 接受search参数
        // let search = qs.parse(this.props.location.search.slice(1))
        // const { id, title, content } = search

        // 接收state参数
        const { id, title, content } = this.props.location.state
        return (
            <div>
                <p>id:{id}</p>
                <p>title:{title}</p>
                <p>content:{content}</p>
            </div>
        )
    }
}
